<?php 
use Yii\helpers\Html;
use yii\bootstrap\Nav;


//菜单
$menuItem = [];
if ($access = Yii::$app->params['access']) {
	isset($access['USER']['INDEX']) && $menuItem[] = ['label' => '教师管理', 'url' => ['/user/index']];
	isset($access['USER']['FROM']) && $menuItem[] = ['label' => '教师来源管理', 'url' => ['/user/from']];
	isset($access['USER']['POSITION']) && $menuItem[] = ['label' => '教师职位管理', 'url' => ['/user/position']];
} else {
    $menuItem = [
        ['label' => '教师管理', 'url' => ['/user/teacher']],
        ['label' => '教师来源管理', 'url' => ['/user/from']],
        ['label' => '教师职位管理', 'url' => ['/user/position']],
    ];
}


echo Nav::widget([
	'options' => ['class' => 'nav nav-tabs mbm'],
	'items' => $menuItem,
]);

?>